package com.xy.bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/8 16:43
 * @description
 */


public class ColorFactory implements FactoryBean<Color> {
    @Override
    public Color getObject() throws Exception {
        System.out.println("ColorFactory 调用了.... ");
        return new Color();
    }

    @Override
    public Class<?> getObjectType() {
        return Color.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
